/*-----------------------------------------------------------------------------
File: ProcessInputFiles.cpp

History:

-----------------------------------------------------------------------------*/
#ifndef COMMENT_H
#define COMMENT_H

#include <vector>
#include <string>
#include <iostream>

using namespace std;

class Comment {
protected:
	
    vector<string> * comList; 
    string fileName;
    // store in the first element of the vector comList 1 : author, 2 : description, 3 : Date, 4 : other
public:
	Comment() {
		comList = new vector<string>();		
		fileName = "";
		
	}

	void setComments(string _filename,vector<string> *_comList) {
		comList = _comList;
		fileName= _filename;	
	}
	
	// return the file name
    string getfileName(){
           return fileName;
    }
    // return all comments that belong to each comment
    vector<string> * getAllComments() {
		/* return list of all comments */
		return comList;
	}
	void displayComment() {
		
		int i;		
	
		cout<<"File name :";
		cout<<fileName<<endl;
		cout<<"The Comments :"<<endl;
        for(i=0; i<(int)comList->size(); i++)
        {
           cout << (*comList)[i]<<endl;
           
        }
        cout<<endl;
      
		
	}
    
};
#endif

